<div class="page-content">
    <div class="col-sm-6 pull-right">
        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'imageInfo'">
            添加
            <i class="icon-reply icon-only"></i>
        </span>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getName()}
        </h1>
    </div><!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>id</th>
                            <th>公众号名称</th>
                            <th>公众号类型</th>
                            <th>关键词</th>
                            <th>回答</th>
                            <th>回复类型</th>
                            <th>匹配次数</th>
                           <!-- <th>标题</th>
                            <th>图片</th>
                            <th>图片链接</th>
                            <th>描述</th> -->
                            <th>添加时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        {volist name="lists" id="vo"}
                        <tr>
                            <td>{$vo.reply_set_id}</td>
                            <td>{$vo.appname}</td>
                            <td>{if condition="$vo.app_type == 0"}订阅号{else/}服务号{/if}</td>
                            <td>{$vo.reply_keywords}</td>
                            <td>
                                {if condition="$vo.reply_type == 0"}
                                {$vo.reply_answer}
                                {elseif condition="$vo.reply_type == 1"}
                                <span class="glyphicon glyphicon-picture"></span>{$vo.title}...
                                {else/}
                                未知
                                {/if}
                            </td>
                           <!-- <td><img src="{$vo.image_url}" style="width: 100px;height: 100px"> </td>
                            <td>{$vo.url}</td>
                            <td>{$vo.description}</td>-->
                            {if condition="$vo.reply_type == 0"}
                            <td>文本</td>
                            {elseif condition="$vo.reply_type == 1"}
                            <td>图文</td>
                            {else/}
                            <td>未知</td>
                            {/if}
                            <td>{$vo.reply_num}</td>
                            <td>{$vo.addtime}</td>
                            <td>
                                <div class="hidden-sm hidden-xs btn-group">
                                    {if condition="$vo.reply_type == 0"}
                                    <a href='{:url("info","id=$vo[reply_set_id]")}'>
                                        {elseif condition="$vo.reply_type == 1"}
                                    <a href='{:url("imageInfou","id=$vo[reply_set_id]")}'>
                                        {/if}
                                    <span class="btn btn-xs btn-info">
                                                <i class="ace-icon fa fa-pencil bigger-120"></i>
                                            </span>
                                    </a>
                                    <a href='javascript:void(0)' onclick="return alert_del('{:url(\"imagedel\",\"id=$vo[reply_set_id]\")}', '确认要删除『 id={$vo.id} 』这条记录吗？');"
                                    <span class="btn btn-xs btn-danger">
                                                <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                            </span>
                                    </a>

                                </div>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                    {$lists->render()}
                </div><!-- /.span -->
            </div><!-- /.row -->

            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->
<script type="text/javascript">
    $(function () {
        $(".dr").click(function () {
            var str = $("#thisfile").val();
            if (str == '') {
                alert('要导入的东西不能为空');
                return false;
            }
        })
    })

    function makeThisfile() {
        $('#thisfile').click();
    }

    //file表单选中文件时,让file表单的val展示到showname这个展示框
    $('#thisfile').change(function () {
        $('#showname').val($(this).val())
    })
</script>
<style type="text/css">
    #browse {
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #2c9a8a;
        color: #fff;
    }
</style>


